home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
database
/
db2bas.zip
/
DICTGLOB.BAS
< prev
next >
Wrap
BASIC Source File
|
1994-09-22
|
4KB
|
103 lines
Option Explicit
' MousePointer
Global Const DEFAULT = 0 ' 0 - Default
Global Const ARROW = 1 ' 1 - Arrow
Global Const CROSSHAIR = 2 ' 2 - Cross
Global Const IBEAM = 3 ' 3 - I-Beam
Global Const ICON_POINTER = 4 ' 4 - Icon
Global Const SIZE_POINTER = 5 ' 5 - Size
Global Const SIZE_NE_SW = 6 ' 6 - Size NE SW
Global Const SIZE_N_S = 7 ' 7 - Size N S
Global Const SIZE_NW_SE = 8 ' 8 - Size NW SE
Global Const SIZE_W_E = 9 ' 9 - Size W E
Global Const UP_ARROW = 10 ' 10 - Up Arrow
Global Const HOURGLASS = 11 ' 11 - Hourglass
Global Const NO_DROP = 12 ' 12 - No drop
' Function Parameters
' MsgBox parameters
Global Const MB_OK = 0 ' OK button only
Global Const MB_OKCANCEL = 1 ' OK and Cancel buttons
Global Const MB_ABORTRETRYIGNORE = 2 ' Abort, Retry, and Ignore buttons
Global Const MB_YESNOCANCEL = 3 ' Yes, No, and Cancel buttons
Global Const MB_YESNO = 4 ' Yes and No buttons
Global Const MB_RETRYCANCEL = 5 ' Retry and Cancel buttons
Global Const MB_ICONSTOP = 16 ' Critical message
Global Const MB_ICONQUESTION = 32 ' Warning query
Global Const MB_ICONEXCLAMATION = 48 ' Warning message
Global Const MB_ICONINFORMATION = 64 ' Information message
Global Const MB_APPLMODAL = 0 ' Application Modal Message Box
Global Const MB_DEFBUTTON1 = 0 ' First button is default
Global Const MB_DEFBUTTON2 = 256 ' Second button is default
Global Const MB_DEFBUTTON3 = 512 ' Third button is default
Global Const MB_SYSTEMMODAL = 4096 'System Modal
' MsgBox return values
Global Const IDOK = 1 ' OK button pressed
Global Const IDCANCEL = 2 ' Cancel button pressed
Global Const IDABORT = 3 ' Abort button pressed
Global Const IDRETRY = 4 ' Retry button pressed
Global Const IDIGNORE = 5 ' Ignore button pressed
Global Const IDYES = 6 ' Yes button pressed
Global Const IDNO = 7 ' No button pressed
Sub outlines (formname As Form)
Dim drkgray As Long, fullwhite As Long
Dim i As Integer
Dim ctop As Integer, cleft As Integer, cright As Integer, cbottom As Integer
' Outline a form's controls for 3D look unless control's TAG
' property is set to "skip".
Dim cName As Control
drkgray = RGB(128, 128, 128)
fullwhite = RGB(255, 255, 255)
For i = 0 To (formname.Controls.Count - 1)
Set cName = formname.Controls(i)
If TypeOf cName Is Menu Then
'Debug.Print "menu item"
ElseIf (UCase(Left(cName.Tag, 2)) = "OL") Then
If cName.Visible Then
ctop = cName.Top - screen.TwipsPerPixelY
cleft = cName.Left - screen.TwipsPerPixelX
cright = cName.Left + cName.Width
cbottom = cName.Top + cName.Height
formname.Line (cleft, ctop)-(cright, ctop), drkgray
formname.Line (cleft, ctop)-(cleft, cbottom), drkgray
formname.Line (cleft, cbottom)-(cright, cbottom), fullwhite
formname.Line (cright, ctop)-(cright, cbottom), fullwhite
End If
End If
Next i
End Sub
Sub PicOutlines (pic As Control, ctl As Control)
Dim drkgray As Long, fullwhite As Long
Dim ctop As Integer, cleft As Integer, cright As Integer, cbottom As Integer
If Not pic.Visible Or UCase(ctl.Tag) = "SKIP" Then Exit Sub
' Outline a form's controls for 3D look unless control's TAG
' property is set to "skip".
Dim cName As Control
drkgray = RGB(128, 128, 128)
fullwhite = RGB(255, 255, 255)
ctop = ctl.Top - screen.TwipsPerPixelY
cleft = ctl.Left - screen.TwipsPerPixelX
cright = ctl.Left + ctl.Width
cbottom = ctl.Top + ctl.Height
pic.Line (cleft, ctop)-(cright, ctop), drkgray
pic.Line (cleft, ctop)-(cleft, cbottom), drkgray
pic.Line (cleft, cbottom)-(cright, cbottom), fullwhite
pic.Line (cright, ctop)-(cright, cbottom), fullwhite
End Sub